
function drawline(box,max,min){
    'use strict';
    var data=[[],[],[],[],[]];
    var time=[];
    var name=[];
    var i=0;
    for(var key in box["data"]){
        name[i]=key;
        for(var n=0;n<box["data"][key].length;n++){
            data[i].push(box["data"][key][n]);
            time[n]=n+1;
        }
        i++;
    }
    for(var p=0;p<5;p++)
    {
        let type='line';
        var tmpdata={
            labels:time,
            datasets:[
                {
                    label:name[p],
                    data:data[p],
                    borderColor:"steelblue",
                    borderWidth:"3",
                    fill:false,
                    backgroundColor:'rgba(100,255,0,0.1)',
                    pointStyle:'triangle',
                    pointRadius:'7'
                }
            ]
        }
        var ctx=document.getElementById(name[p]).getContext('2d');
        var chart=new Chart(ctx,{
            type:type,
            data:tmpdata,
            color:"red",
            options:{
                title:{
                    display:true,
                    text:name[p],
                    fontColor:'blue',
                    fontSize:'24',
                    position:'top',
                },
                legend:{
                    position:'left',
                    diaplay:true,
                },
                animation:false,
                scales:{
                    yAxes:[{
                        ticks:{
                            suggestedMin:min[p],
                            suggestedMax:max[p],
                        }
                    }],
                },
            }
        });
    }
    return 0;
}